<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	request.setCharacterEncoding("UTF-8");
	String cp = request.getContextPath(); 
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="<%=cp%>/data/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript">

	$(document).ready(function(){
		
		$("#saveButton").click(function(){
			
			var value = $("#name").val();
			$.post("a1_ok.jsp", {name:value}, function(args){
				$("#resultDIV").html(args);
			});
		});
		
		$("#cleanButton").click(function(){
			$("#resultDIV").empty();
		});
	});
	
</script>
</head>
<body>

이름 : <input type="text" id="name" /><br/>
<button id="saveButton">전송</button>
<button id="cleanButton">지우기</button>
<br/>
<div id="resultDIV"></div>

</body>
</html>